"use strict";
var customer = {
    name: "罗佰君",
    age: 20,
    sayHello: () => { return "罗佰君向大家问好！"; }
};
var customer2 = {
    name: "孙孜子措",
    age: 20,
    sayHello: () => { return "子措向大家问好！"; }
};
function showPerson(person) {
    console.log(`大家好，我是${person.name},我今年${person.age}岁了！`);
    return person.sayHello();
}
showPerson(customer);
showPerson(customer2);
let cat = {
    name: "小猫",
    cry: () => {
        console.log("喵喵喵！");
    }
};
let dog = {
    name: "小狗",
    cry: () => {
        console.log("汪汪汪！");
    }
};
function testAnimal(a) {
    console.log("我是：", a.name);
    a.cry();
}
testAnimal(cat);
testAnimal(dog);
